package com.demo.multweb.controller;

import cn.hutool.core.util.RandomUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lyf
 */
@RestController
@RequestMapping(value = "/")
public class TestController {
    @RequestMapping(value = "test", method = RequestMethod.GET)
    public Object test(){
        return RandomUtil.randomString(8);
    }
}
